package c.c.c.a.c;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.HashMap;

/* compiled from: NpthDbHelper */
public class d extends SQLiteOpenHelper {
    public d(Context context) {
        super(context, "npth_log.db", null, 1);
    }

    public void onCreate(SQLiteDatabase sQLiteDatabase) {
        String str = "duplicatelog";
        try {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append("CREATE TABLE ");
            stringBuilder.append(str);
            stringBuilder.append(" (_id INTEGER PRIMARY KEY AUTOINCREMENT, ");
            HashMap hashMap = new HashMap();
            String str2 = "TEXT";
            hashMap.put("path", str2);
            hashMap.put("insert_time", "INTEGER");
            hashMap.put("ext1", str2);
            hashMap.put("ext2", str2);
            for (String str22 : hashMap.keySet()) {
                stringBuilder.append(str22);
                stringBuilder.append(" ");
                stringBuilder.append((String) hashMap.get(str22));
                stringBuilder.append(",");
            }
            stringBuilder.delete(stringBuilder.length() - 1, stringBuilder.length());
            stringBuilder.append(")");
            sQLiteDatabase.execSQL(stringBuilder.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
    }
}
